package com.jy.datapipeline.importserver.common.enums.impl;

import com.jy.datapipeline.importserver.common.enums.Enums;
import lombok.Getter;

/**
 * @类名 TaskStatusEnums
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/4/19 14:57
 * @版本 1.0
*/
public enum TaskStatusEnum implements Enums {

    NOT_START(0, "未开始"),
    RUNNING(1, "执行中"),
    SUCCESS(2, "执行成功"),
    FAIL(3, "执行失败"),
    EXCEPTION(4, "执行异常"),
    RETRY_FAIL(5, "重试失败"),
    RETRY_SUCCESS(6, "重试成功"),
    VERIFY_FAIL(7, "数据文件校验失败");

    private final int code;

    private final String msg;

    TaskStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
